package cate.common.table.d;

import cate.common.table.common.ParamSheet;
import easy.java.dev.note.NoteClass;
import easy.java.dev.note.NoteField;

@NoteClass("个人空间")
public class GDBlog {

	@NoteField("玩家默认的头像框")
	public static int DEFAULT_HEAD_FRAME;

	@NoteField("玩家默认的称号")
	public static int DEFAULT_TITLE;

	@NoteField("免费修改名字次数")
	public static int FREE_MODIFY_NAME_TIME;

	@NoteField("修改名字消耗")
	public static String MODIFY_NAME_COST_STR;

	@NoteField("名字最小长度")
	public static int NAME_LENGTH_MIN;

	@NoteField("名字最大长度")
	public static int NAME_LENGTH_MAX;

	@NoteField(value = "修改名字道具消耗",detail = "优先使用")
	public static String MODIFY_NAME_ITEM_COST_STR;

	public static int LUBI_ITEM_HEAD_ICON_ID;
	public static String LUBI_ITEM_REWARD;

	@NoteClass( "个人空间-饰品类型")
	public static class DecorateType {
		@NoteField("头像")
		public static final byte HEAD_ICON = 1;

		@NoteField("头像框")
		public static final byte HEAD_FRAME = 2;

		@NoteField("冒险形象")
		public static final byte AVATAR = 3;

		@NoteField("称号")
		public static final byte TITLE = 4;

		@NoteField("英雄皮肤")
		public static final byte HERO_SKIN = 5;

		@NoteField("主角皮肤")
		public static final byte LEADER_SKIN = 7;

		@NoteField("气泡框")
		public static final byte BUBBLE_BOX = 8;

		@NoteField("载具")
		public static final byte VEHICLE = 9;
	}

	@NoteClass("个人空间-饰品激活类型")
	public static class ActiveType {
		@NoteField("获得指定英雄")
		public static final byte HERO = 1;

		@NoteField("VIP达到指定等级")
		public static final byte VIP = 2;

		@NoteField("获得英雄皮肤")
		public static final byte HERO_SKIN = 3;

		@NoteField("道具激活")
		public static final byte ITEM = 4;

		@NoteField(value = "主角性别",detail = "目前男女性别的都可以用")
		public static final byte SEX = 5;

		@NoteField("获得主角皮肤")
		public static final byte LEADER_SKIN = 6;
	}

	/**
	 * 读取excel中配置的参数
	 */
	public static void initialize(ParamSheet paramSheet) {
		DEFAULT_HEAD_FRAME = GDParamTool.getInt(paramSheet, 437, 1);
		FREE_MODIFY_NAME_TIME = GDParamTool.getInt(paramSheet, 1501, 1);
		MODIFY_NAME_COST_STR = GDParamTool.getString(paramSheet, 1502, "0:1:100");
		NAME_LENGTH_MIN = GDParamTool.getInt(paramSheet, 1503, 2);
		NAME_LENGTH_MAX = GDParamTool.getInt(paramSheet, 1504, 6);
		MODIFY_NAME_ITEM_COST_STR = GDParamTool.getString(paramSheet, 1505, "3:100119:1");
		LUBI_ITEM_HEAD_ICON_ID = GDParamTool.getInt(paramSheet, 5007, 2012);
		LUBI_ITEM_REWARD = GDParamTool.getString(paramSheet, 5008, "0:2:100");
	}
}
